<?php
include_once "common/cnfg.inc";

function main()
{/*{{{*/
    $svcenv=new svcenv();
    //$svcenv=new svcenv(cnfg::$svcenv['default']);

    $svcenv->begin();     // unnecessary but tuxedo

    $request=array('uuid'=>'@00000000001');
    $response=$svcenv->call("HELLO", $request);
    if($response === false)
    {
        echo "call svcenv fail\n";
        $svcenv->abort(); // unnecessary but tuxedo
        $svcenv->close();
        return 1;
    }
    print_r($response);
    foreach($response as $k=>$v)
    {
        print "$k => $v\n";
    }
    $svcenv->commit();    // unnecessary but tuxedo

    $svcenv->close();

    return 0;
}/*}}}*/

main();
?>
